package com.mybar.subject.domain.convert;


import com.mybar.subject.domain.entity.SubjectCategoryBO;
import com.mybar.subject.infer.basic.entity.SubjectCategory;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.mapstruct.factory.Mappers;

import java.time.ZonedDateTime;

import static java.time.ZonedDateTime.*;

@Mapper
public interface SubjectCategoryConvert {
    SubjectCategoryConvert INSTANCE = Mappers.getMapper(SubjectCategoryConvert.class);
    @Mapping(source = "id", target = "id")
    @Mapping(source = "categoryType", target = "categoryType")
    @Mapping(source = "categoryName", target = "categoryName")
    @Mapping(source = "imageUrl", target = "imageUrl")
    @Mapping(source = "parentId", target = "parentId")

    SubjectCategory convertBoToCategory(SubjectCategoryBO subjectCategoryBO);

    //ZonedDateTime now = now();

}
